package com.computergames.server.server.client;

import java.io.FileWriter;
import java.io.IOException;

public class TokenSaver {
    private static final String TOKEN_FILE_PATH = "D:\\try\\ComputerGamesServer\\ComputerGamesServer\\src\\main\\resources\\token.txt";

    public static void saveTokenToFile(String token) {
        try (FileWriter writer = new FileWriter(TOKEN_FILE_PATH)) {
            writer.write(token);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
